package com.boot.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.boot.dao.CtimeDAO;
import com.boot.entity.Ctime;
import com.boot.service.CtimeService;

@Service("ctimeService")
public class CtimeServiceImpl implements CtimeService {
	@Autowired
	private CtimeDAO ctimeDAO;
	@Override // 继承接口的新增 返回值0(失败),1(成功)
	public int insertCtime(Ctime ctime) {
		return this.ctimeDAO.insertCtime(ctime);
	}

	@Override // 继承接口的更新 返回值0(失败),1(成功)
	public int updateCtime(Ctime ctime) {
		return this.ctimeDAO.updateCtime(ctime);
	}

	@Override // 继承接口的删除 返回值0(失败),1(成功)
	public int deleteCtime(String ctimeid) {
		return this.ctimeDAO.deleteCtime(ctimeid);
	}

	@Override // 继承接口的查询全部
	public List<Ctime> getAllCtime() {
		return this.ctimeDAO.getAllCtime();
	}

	@Override // 继承接口的按条件精确查询
	public List<Ctime> getCtimeByCond(Ctime ctime) {
		return this.ctimeDAO.getCtimeByCond(ctime);
	}

	@Override // 继承接口的按条件模糊查询
	public List<Ctime> getCtimeByLike(Ctime ctime) {
		return this.ctimeDAO.getCtimeByLike(ctime);
	}

	@Override // 继承接口的按主键查询 返回Entity实例
	public Ctime getCtimeById(String ctimeid) {
		return this.ctimeDAO.getCtimeById(ctimeid);
	}

}

// 程序开发 QQ 709664889 可以付费修改
